Optimal. Leaf size=81 \[ \frac {(b e-a f) (d e-c f) \tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {e}}\right )}{\sqrt {e} f^{5/2}}-\frac {x (-2 a d f-3 b c f+3 b d e)}{3 f^2}+\frac {d x \left (a+b x^2\right )}{3 f} \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {528, 388, 205} \begin {gather*} -\frac {x (-2 a d f-3 b c f+3 b d e)}{3 f^2}+\frac {(b e-a f) (d e-c f) \tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {e}}\right )}{\sqrt {e} f^{5/2}}+\frac {d x \left (a+b x^2\right )}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 388
Rule 528
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right ) \left (c+d x^2\right )}{e+f x^2} \, dx &=\frac {d x \left (a+b x^2\right )}{3 f}+\frac {\int \frac {-a (d e-3 c f)-(3 b d e-3 b c f-2 a d f) x^2}{e+f x^2} \, dx}{3 f}\\ &=-\frac {(3 b d e-3 b c f-2 a d f) x}{3 f^2}+\frac {d x \left (a+b x^2\right )}{3 f}+\frac {((b e-a f) (d e-c f)) \int \frac {1}{e+f x^2} \, dx}{f^2}\\ &=-\frac {(3 b d e-3 b c f-2 a d f) x}{3 f^2}+\frac {d x \left (a+b x^2\right )}{3 f}+\frac {(b e-a f) (d e-c f) \tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {e}}\right )}{\sqrt {e} f^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 72, normalized size = 0.89 \begin {gather*} \frac {(b e-a f) (d e-c f) \tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {e}}\right )}{\sqrt {e} f^{5/2}}+\frac {x (a d f+b c f-b d e)}{f^2}+\frac {b d x^3}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a+b x^2\right ) \left (c+d x^2\right )}{e+f x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.42, size = 191, normalized size = 2.36 \begin {gather*} \left [\frac {2 \, b d e f^{2} x^{3} - 3 \, {\left (b d e^{2} + a c f^{2} - {\left (b c + a d\right )} e f\right )} \sqrt {-e f} \log \left (\frac {f x^{2} - 2 \, \sqrt {-e f} x - e}{f x^{2} + e}\right ) - 6 \, {\left (b d e^{2} f - {\left (b c + a d\right )} e f^{2}\right )} x}{6 \, e f^{3}}, \frac {b d e f^{2} x^{3} + 3 \, {\left (b d e^{2} + a c f^{2} - {\left (b c + a d\right )} e f\right )} \sqrt {e f} \arctan \left (\frac {\sqrt {e f} x}{e}\right ) - 3 \, {\left (b d e^{2} f - {\left (b c + a d\right )} e f^{2}\right )} x}{3 \, e f^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.31, size = 80, normalized size = 0.99 \begin {gather*} \frac {{\left (a c f^{2} - b c f e - a d f e + b d e^{2}\right )} \arctan \left (\sqrt {f} x e^{\left (-\frac {1}{2}\right )}\right ) e^{\left (-\frac {1}{2}\right )}}{f^{\frac {5}{2}}} + \frac {b d f^{2} x^{3} + 3 \, b c f^{2} x + 3 \, a d f^{2} x - 3 \, b d f x e}{3 \, f^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 119, normalized size = 1.47 \begin {gather*} \frac {b d \,x^{3}}{3 f}+\frac {a c \arctan \left (\frac {f x}{\sqrt {e f}}\right )}{\sqrt {e f}}-\frac {a d e \arctan \left (\frac {f x}{\sqrt {e f}}\right )}{\sqrt {e f}\, f}-\frac {b c e \arctan \left (\frac {f x}{\sqrt {e f}}\right )}{\sqrt {e f}\, f}+\frac {b d \,e^{2} \arctan \left (\frac {f x}{\sqrt {e f}}\right )}{\sqrt {e f}\, f^{2}}+\frac {a d x}{f}+\frac {b c x}{f}-\frac {b d e x}{f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.24, size = 74, normalized size = 0.91 \begin {gather*} \frac {{\left (b d e^{2} + a c f^{2} - {\left (b c + a d\right )} e f\right )} \arctan \left (\frac {f x}{\sqrt {e f}}\right )}{\sqrt {e f} f^{2}} + \frac {b d f x^{3} - 3 \, {\left (b d e - {\left (b c + a d\right )} f\right )} x}{3 \, f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.11, size = 108, normalized size = 1.33 \begin {gather*} x\,\left (\frac {a\,d+b\,c}{f}-\frac {b\,d\,e}{f^2}\right )+\frac {b\,d\,x^3}{3\,f}+\frac {\mathrm {atan}\left (\frac {\sqrt {f}\,x\,\left (a\,f-b\,e\right )\,\left (c\,f-d\,e\right )}{\sqrt {e}\,\left (a\,c\,f^2+b\,d\,e^2-a\,d\,e\,f-b\,c\,e\,f\right )}\right )\,\left (a\,f-b\,e\right )\,\left (c\,f-d\,e\right )}{\sqrt {e}\,f^{5/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.62, size = 206, normalized size = 2.54 \begin {gather*} \frac {b d x^{3}}{3 f} + x \left (\frac {a d}{f} + \frac {b c}{f} - \frac {b d e}{f^{2}}\right ) - \frac {\sqrt {- \frac {1}{e f^{5}}} \left (a f - b e\right ) \left (c f - d e\right ) \log {\left (- \frac {e f^{2} \sqrt {- \frac {1}{e f^{5}}} \left (a f - b e\right ) \left (c f - d e\right )}{a c f^{2} - a d e f - b c e f + b d e^{2}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{e f^{5}}} \left (a f - b e\right ) \left (c f - d e\right ) \log {\left (\frac {e f^{2} \sqrt {- \frac {1}{e f^{5}}} \left (a f - b e\right ) \left (c f - d e\right )}{a c f^{2} - a d e f - b c e f + b d e^{2}} + x \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________